#include <bits/stdc++.h>

using namespace std;

#define int long long 

int gcd(int a , int b)
{
    if(!b) return a;
    return gcd(b , a % b);
}
signed main()
{
    int a , b;
    cin >> a >> b;
    cout << (a * b) / gcd(a , b) << endl;
    return 0;
}